<!DOCTYPE html><html><head><title>adDayGroupReport</title><meta charset='utf-8'><link href='https://dn-maxiang.qbox.me/res-min/themes/marxico.css' rel='stylesheet'><style></style></head><body><div id='preview-contents' class='note-content'>
                        
                    

<h2 id="addaygroupreport">adDayGroupReport</h2>

<blockquote>
  <p>共 <code>initParam</code> <code>search</code> 两个接口  <br>
  广告日数据（分渠道）</p>
</blockquote>

<hr>



<h3 id="initparam"><code>initParam</code></h3>

<p><strong>接口说明</strong> </p>

<pre class="prettyprint hljs-dark"><code class="hljs">请求条件初始化<br></code></pre>

<p><strong>URL</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs awk">http:<span class="hljs-regexp">//</span><span class="hljs-number">115.159</span>.<span class="hljs-number">207.95</span>:<span class="hljs-number">9080</span><span class="hljs-regexp">/advDayDataGroupBiAction/i</span>nitParam.<span class="hljs-keyword">do</span><br></code></pre>

<p><strong>请求参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs 1c"><span class="hljs-number">1</span>. callback : <span class="hljs-string">""</span>   <span class="hljs-meta"># 回调,可选</span><br></code></pre>

<p><strong>返回参数–正确</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs 1c">{<br>    <span class="hljs-string">"res"</span>:<span class="hljs-string">"0"</span>,                                              <span class="hljs-meta"># 结果0正确</span><br>    <span class="hljs-string">"agent"</span>:[<span class="hljs-string">"时趣"</span>,<span class="hljs-string">"多盟"</span>,<span class="hljs-string">"掌握"</span>],                           <span class="hljs-meta"># 代理商</span><br>    <span class="hljs-string">"platform"</span>:[<span class="hljs-string">"ios"</span>,<span class="hljs-string">"安卓"</span>],                               <span class="hljs-meta"># 平台</span><br>    <span class="hljs-string">"affiliation"</span>:[<span class="hljs-string">"广告平台"</span>,<span class="hljs-string">"市场媒介"</span>],                     <span class="hljs-meta"># 归属</span><br>    <span class="hljs-string">"channelName"</span>:[<span class="hljs-string">"时趣cpi"</span>,<span class="hljs-string">"uc"</span>],                          <span class="hljs-meta"># 渠道名称</span><br>    <span class="hljs-string">"paytype"</span>:[<span class="hljs-string">"cpi"</span>,<span class="hljs-string">"cpc"</span>],                                <span class="hljs-meta">#结算方式</span><br>    <span class="hljs-string">"advPosition"</span>:[<span class="hljs-string">"时趣_04"</span>,<span class="hljs-string">"多盟_UC_9_a"</span>,<span class="hljs-string">"多盟_今日头条_19"</span>] <span class="hljs-meta">#广告位置</span><br>}<br></code></pre>

<p><strong>返回参数–错误</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs 1c">{<br>    <span class="hljs-string">"res"</span>:<span class="hljs-string">"1"</span>,                                         <span class="hljs-meta"># 结果1错误</span><br>    <span class="hljs-string">"msg"</span>:<span class="hljs-string">"此用户无任何代理商权限，请联系管理员配置!"</span>         <span class="hljs-meta"># 错误信息</span><br>}<br></code></pre>

<hr>



<h3 id="search"><code>search</code></h3>

<p><strong>接口说明</strong> </p>

<pre class="prettyprint hljs-dark"><code class="hljs gcode">返回页面数据<span class="hljs-comment">(详细数据)</span><br></code></pre>

<p><strong>URL</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs awk">http:<span class="hljs-regexp">//</span><span class="hljs-number">115.159</span>.<span class="hljs-number">207.95</span>:<span class="hljs-number">9080</span><span class="hljs-regexp">/advDayDataGroupBiAction/</span>search.<span class="hljs-keyword">do</span><br></code></pre>

<p><strong>请求参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs autoit"><span class="hljs-number">1.</span> sday: <span class="hljs-string">"2017-04-01"</span>                 <span class="hljs-meta"># 开始日期 必填 非<span class="hljs-string">""</span></span><br><span class="hljs-number">2.</span> eday: <span class="hljs-string">"2017-04-07"</span>                 <span class="hljs-meta"># 结束日期 必填 非<span class="hljs-string">""</span></span><br><span class="hljs-number">3.</span> agent: <span class="hljs-string">"xxx,xxx"</span>                    <span class="hljs-meta"># 代理商 必填 可为<span class="hljs-string">""</span> 多个之间 , 分割</span><br><span class="hljs-number">4.</span> platform: <span class="hljs-string">"xxx,xxx"</span>               <span class="hljs-meta"># 平台 必填 可为<span class="hljs-string">""</span> 多个之间 , 分割</span><br><span class="hljs-number">5.</span> affiliation: <span class="hljs-string">"xxx,xxx"</span>           <span class="hljs-meta"># 归属 必填 可为<span class="hljs-string">""</span> 多个之间 , 分割</span><br><span class="hljs-number">6.</span> channelName: <span class="hljs-string">"xxx,xxx"</span>     <span class="hljs-meta"># 渠道 必填 可为<span class="hljs-string">""</span> 多个之间 , 分割</span><br><span class="hljs-number">7.</span> paytype: <span class="hljs-string">"xxx,xxx"</span>               <span class="hljs-meta"># 结算方式 必填 可为<span class="hljs-string">""</span> 多个之间 , 分割</span><br><span class="hljs-number">8.</span> advPosition: <span class="hljs-string">"xxx,xxx"</span>         <span class="hljs-meta"># 广告位置 必填 可为<span class="hljs-string">""</span> 多个之间 , 分割</span><br><span class="hljs-number">9.</span> callback: <span class="hljs-string">"xxx,xxx"</span>              <span class="hljs-meta"># 回调 可选</span><br></code></pre>

<p><strong>返回参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs 1c">{<br><span class="hljs-string">"res"</span>: <span class="hljs-string">"0"</span>,                                  <span class="hljs-meta"># 结果0正确</span><br><span class="hljs-string">"Totals"</span>: [                                  <span class="hljs-meta"># 新增留存数据</span><br>    {<br>        <span class="hljs-string">"dateStr"</span>: <span class="hljs-string">"2017-03-07"</span>,              <span class="hljs-meta"># 日期</span><br>        <span class="hljs-string">"channelName"</span>: <span class="hljs-string">"Matomy"</span>,              <span class="hljs-meta"># 渠道名称</span><br>        <span class="hljs-string">"agent"</span>: <span class="hljs-string">"维度"</span>,                       <span class="hljs-meta"># 代理商</span><br>        <span class="hljs-string">"clkEquipment"</span>: <span class="hljs-number">817488</span>,               <span class="hljs-meta"># 点击设备</span><br>        <span class="hljs-string">"actEquipment"</span>: <span class="hljs-number">268</span>,                  <span class="hljs-meta"># 激活设备</span><br>        <span class="hljs-string">"newActive"</span>: <span class="hljs-number">234</span>,                     <span class="hljs-meta"># 实际激活</span><br>        <span class="hljs-string">"newEquipment"</span>: <span class="hljs-number">216</span>,                  <span class="hljs-meta"># 新增设备</span><br>        <span class="hljs-string">"newAccount"</span>: <span class="hljs-number">218</span>,                    <span class="hljs-meta"># 新增账号</span><br>        <span class="hljs-string">"newPayUser"</span>: <span class="hljs-number">31</span>,                     <span class="hljs-meta"># 新增付费账号</span><br>        <span class="hljs-string">"newPay"</span>: <span class="hljs-number">736</span>,                        <span class="hljs-meta"># 新增付费金额</span><br>        <span class="hljs-string">"payrate"</span>: <span class="hljs-number">0.14</span>,                      <span class="hljs-meta"># 付费率</span><br>        <span class="hljs-string">"discount"</span>: <span class="hljs-number">10720</span>,                    <span class="hljs-meta"># 折后成本</span><br>        <span class="hljs-string">"cpa"</span>: <span class="hljs-number">49.17</span>,                         <span class="hljs-meta"># CPA</span><br>        <span class="hljs-string">"totalpay"</span>: <span class="hljs-number">2724</span>,                     <span class="hljs-meta"># 累计充值【90日】</span><br>        <span class="hljs-string">"roi"</span>: <span class="hljs-number">17.79</span>                          <span class="hljs-meta"># 渠道后ROI(%)</span><br>    },<br>    {<br>        .....                                 <span class="hljs-meta"># 其他url数据同上</span><br>    }<br> ],<br><span class="hljs-string">"newRemainDatas"</span>: [                          <span class="hljs-meta"># 新增留存数据</span><br>    {<br>        <span class="hljs-string">"dateStr"</span>: <span class="hljs-string">"2017-04-01"</span>,              <span class="hljs-meta"># 日期</span><br>        <span class="hljs-string">"channelName"</span>: <span class="hljs-string">"helium"</span>,              <span class="hljs-meta"># 渠道名称</span><br>        <span class="hljs-string">"agent"</span>: <span class="hljs-string">"畅思"</span>,                      <span class="hljs-meta"># 代理商</span><br>        <span class="hljs-string">"newAccount"</span>: <span class="hljs-number">30</span>,                     <span class="hljs-meta"># 新增账号</span><br>        <span class="hljs-string">"remain2"</span>: <span class="hljs-string">"0.0233,                   # 次日留存</span><br>        <span class="hljs-string">"remain3"</span>: <span class="hljs-string">"0.0133"</span>,                  <span class="hljs-meta"># 3日留存</span><br>        <span class="hljs-string">"remain4"</span>: <span class="hljs-string">"0.0131"</span>,                  <span class="hljs-meta"># 4日留存</span><br>        <span class="hljs-string">"remain5"</span>: <span class="hljs-string">"0.0123"</span>,                  <span class="hljs-meta"># 5日留存</span><br>        <span class="hljs-string">"remain6"</span>: <span class="hljs-string">"0.0113"</span>,                  <span class="hljs-meta"># 6日留存</span><br>        .......<br>        <span class="hljs-string">"remain89"</span>: <span class="hljs-string">"0.0333"</span>,                 <span class="hljs-meta"># 89日留存</span><br>        <span class="hljs-string">"remain90"</span>: <span class="hljs-string">"-"</span>                       <span class="hljs-meta"># 90日留存 如果未到该日期 显示 '-'</span><br>    },<br>    {<br>        .....                                 <span class="hljs-meta"># 其他url数据同上</span><br>    }<br> ],<br><span class="hljs-string">"totalPayDatas"</span>: [                            <span class="hljs-meta"># 累计付费(由于涉及到后台计算,直接存储数组)</span><br>    [<br>        <span class="hljs-string">"2017-04-07"</span>,                         <span class="hljs-meta"># 日期</span><br>        <span class="hljs-string">"官网"</span>,                                <span class="hljs-meta"># 渠道名称</span><br>        <span class="hljs-string">"市场"</span>,                                <span class="hljs-meta"># 代理商</span><br>        <span class="hljs-number">14</span>,                                   <span class="hljs-meta"># 新增账号</span><br>        <span class="hljs-number">6</span>,                                    <span class="hljs-meta"># 1日收入</span><br>        <span class="hljs-number">12</span>,                                    <span class="hljs-meta"># 2日收入</span><br>        <span class="hljs-number">18</span>,                                    <span class="hljs-meta"># 3日收入</span><br>        ......<br>        <span class="hljs-number">600</span>,                                   <span class="hljs-meta"># 88日收入</span><br>        -<span class="hljs-number">1</span>,                                   <span class="hljs-meta"># 89日收入 如果未到该日期 显示 -1</span><br>        -<span class="hljs-number">1</span>                                    <span class="hljs-meta"># 90日收入</span><br>    ],<br>    [<br>        ......                                <span class="hljs-meta">#其他url数据同上</span><br>    ]<br>],<br><span class="hljs-string">"activeTranDatas"</span>: [                          <span class="hljs-meta"># 激活转化</span><br>    {<br>        <span class="hljs-string">"dateStr"</span>: <span class="hljs-string">"2017-03-07"</span>,              <span class="hljs-meta"># 日期</span><br>        <span class="hljs-string">"channelName"</span>: <span class="hljs-string">"Matomy"</span>,              <span class="hljs-meta"># 渠道名称</span><br>        <span class="hljs-string">"agent"</span>: <span class="hljs-string">"维度"</span>,                       <span class="hljs-meta"># 代理商</span><br>        <span class="hljs-string">"clkEquipment"</span>: <span class="hljs-number">817488</span>,               <span class="hljs-meta"># 点击设备</span><br>        <span class="hljs-string">"actEquipment"</span>: <span class="hljs-number">268</span>,                  <span class="hljs-meta"># 激活设备</span><br>        <span class="hljs-string">"newActive"</span>: <span class="hljs-number">234</span>,                     <span class="hljs-meta"># 实际激活</span><br>        <span class="hljs-string">"newEquipment"</span>: <span class="hljs-number">216</span>,                  <span class="hljs-meta"># 新增设备</span><br>        <span class="hljs-string">"newAccount"</span>: <span class="hljs-number">218</span>,                    <span class="hljs-meta"># 新增账号</span><br>        <span class="hljs-string">"newPayUser"</span>: <span class="hljs-number">31</span>,                     <span class="hljs-meta"># 新增付费账号</span><br>        <span class="hljs-string">"newPay"</span>: <span class="hljs-number">736</span>,                        <span class="hljs-meta"># 新增付费金额</span><br>        <span class="hljs-string">"payrate"</span>: <span class="hljs-number">0.14</span>,                      <span class="hljs-meta"># 付费率</span><br>        <span class="hljs-string">"discount"</span>: <span class="hljs-number">10720</span>,                    <span class="hljs-meta"># 折后成本</span><br>        <span class="hljs-string">"cpa"</span>: <span class="hljs-number">49.17</span>,                         <span class="hljs-meta"># CPA</span><br>        <span class="hljs-string">"totalpay"</span>: <span class="hljs-number">2724</span>,                     <span class="hljs-meta"># 累计充值【90日】</span><br>        <span class="hljs-string">"roi"</span>: <span class="hljs-number">17.79</span>                          <span class="hljs-meta"># 渠道后ROI(%)</span><br>    },<br>    {<br>        ......<br>    }<br>  ],<br>   <span class="hljs-string">"channelDetailDatas"</span>: [                   <span class="hljs-meta"># 渠道数据</span><br>    {<br>        <span class="hljs-string">"channel"</span>: <span class="hljs-string">"17173"</span>,                  <span class="hljs-meta"># 渠道</span><br>        <span class="hljs-string">"clkEquipment"</span>: <span class="hljs-number">31</span>,                  <span class="hljs-meta"># 点击设备</span><br>        <span class="hljs-string">"actEquipment"</span>: <span class="hljs-number">16</span>,                  <span class="hljs-meta"># 激活设备</span><br>        <span class="hljs-string">"newActive"</span>: <span class="hljs-number">8</span>,                      <span class="hljs-meta"># 实际激活</span><br>        <span class="hljs-string">"newEquipment"</span>: <span class="hljs-number">13</span>,                  <span class="hljs-meta"># 新增设备</span><br>        <span class="hljs-string">"newAccount"</span>: <span class="hljs-number">14</span>,                    <span class="hljs-meta"># 新增账号</span><br>        <span class="hljs-string">"newPayUser"</span>: <span class="hljs-number">2</span>,                     <span class="hljs-meta"># 新增付费账号</span><br>        <span class="hljs-string">"newPay"</span>: <span class="hljs-number">12</span>,                        <span class="hljs-meta"># 新增付费金额</span><br>        <span class="hljs-string">"payrate"</span>: <span class="hljs-number">0.14</span>,                     <span class="hljs-meta"># 付费率</span><br>        <span class="hljs-string">"discount"</span>: <span class="hljs-number">0</span>,                       <span class="hljs-meta"># 折后成本</span><br>        <span class="hljs-string">"cpa"</span>: <span class="hljs-number">0</span>,                            <span class="hljs-meta"># CPA</span><br>        <span class="hljs-string">"totalpay"</span>: <span class="hljs-number">6</span>,                       <span class="hljs-meta"># 累计充值[90日]</span><br>        <span class="hljs-string">"roi"</span>: <span class="hljs-number">0</span>                             <span class="hljs-meta"># 渠道后ROI(%)</span><br>    },<br>    {<br>        .......<br>    }<br>],<br><span class="hljs-string">"res"</span>: <span class="hljs-string">"0"</span>,<br><span class="hljs-string">"activityDetailDatas"</span>: [                     <span class="hljs-meta"># 活动数据</span><br>    {<br>        <span class="hljs-string">"activity"</span>: <span class="hljs-string">"0223不删档"</span>,             <span class="hljs-meta"># 活动名</span><br>        <span class="hljs-string">"clkEquipment"</span>: <span class="hljs-number">13418116</span>,<br>        <span class="hljs-string">"actEquipment"</span>: <span class="hljs-number">48694</span>,<br>        <span class="hljs-string">"newActive"</span>: <span class="hljs-number">25282</span>,<br>        <span class="hljs-string">"newEquipment"</span>: <span class="hljs-number">24064</span>,<br>        <span class="hljs-string">"newAccount"</span>: <span class="hljs-number">24527</span>,<br>        <span class="hljs-string">"newPayUser"</span>: <span class="hljs-number">2291</span>,<br>        <span class="hljs-string">"newPay"</span>: <span class="hljs-number">86450</span>,<br>        <span class="hljs-string">"payrate"</span>: <span class="hljs-number">0.09</span>,<br>        <span class="hljs-string">"discount"</span>: <span class="hljs-number">1371933</span>,<br>        <span class="hljs-string">"cpa"</span>: <span class="hljs-number">55.94</span>,<br>        <span class="hljs-string">"totalpay"</span>: <span class="hljs-number">925733</span>,<br>        <span class="hljs-string">"roi"</span>: <span class="hljs-number">43.72</span><br>    },<br>    {<br>       ......<br>    }<br>],<br><span class="hljs-string">"platformDetailDatas"</span>: [                  <span class="hljs-meta"># 平台数据</span><br>    {<br>        <span class="hljs-string">"platform"</span>: <span class="hljs-string">"ios"</span>,                <span class="hljs-meta"># 平台</span><br>        <span class="hljs-string">"clkEquipment"</span>: <span class="hljs-number">13435465</span>,<br>        <span class="hljs-string">"actEquipment"</span>: <span class="hljs-number">49188</span>,<br>        <span class="hljs-string">"newActive"</span>: <span class="hljs-number">25498</span>,<br>        <span class="hljs-string">"newEquipment"</span>: <span class="hljs-number">24309</span>,<br>        <span class="hljs-string">"newAccount"</span>: <span class="hljs-number">24771</span>,<br>        <span class="hljs-string">"newPayUser"</span>: <span class="hljs-number">2297</span>,<br>        <span class="hljs-string">"newPay"</span>: <span class="hljs-number">87202</span>,<br>        <span class="hljs-string">"payrate"</span>: <span class="hljs-number">0.09</span>,<br>        <span class="hljs-string">"discount"</span>: <span class="hljs-number">1552558</span>,<br>        <span class="hljs-string">"cpa"</span>: <span class="hljs-number">62.68</span>,<br>        <span class="hljs-string">"totalpay"</span>: <span class="hljs-number">952165</span>,<br>        <span class="hljs-string">"roi"</span>: <span class="hljs-number">39.83</span><br>    },<br>    {<br>        ......<br>    }<br>],<br><span class="hljs-string">"agentDetailDatas"</span>: [                  <span class="hljs-meta"># 代理数据</span><br>    {<br>        <span class="hljs-string">"agent"</span>: <span class="hljs-string">"2F"</span>,                 <span class="hljs-meta"># 代理</span><br>        <span class="hljs-string">"clkEquipment"</span>: <span class="hljs-number">223173</span>,<br>        <span class="hljs-string">"actEquipment"</span>: <span class="hljs-number">312</span>,<br>        <span class="hljs-string">"newActive"</span>: <span class="hljs-number">136</span>,<br>        <span class="hljs-string">"newEquipment"</span>: <span class="hljs-number">133</span>,<br>        <span class="hljs-string">"newAccount"</span>: <span class="hljs-number">137</span>,<br>        <span class="hljs-string">"newPayUser"</span>: <span class="hljs-number">20</span>,<br>        <span class="hljs-string">"newPay"</span>: <span class="hljs-number">3065</span>,<br>        <span class="hljs-string">"payrate"</span>: <span class="hljs-number">0.15</span>,<br>        <span class="hljs-string">"discount"</span>: <span class="hljs-number">7520</span>,<br>        <span class="hljs-string">"cpa"</span>: <span class="hljs-number">54.89</span>,<br>        <span class="hljs-string">"totalpay"</span>: <span class="hljs-number">59482</span>,<br>        <span class="hljs-string">"roi"</span>: <span class="hljs-number">553.69</span><br>    },<br>    {<br>        ......<br>    }<br>],<br><span class="hljs-string">"paytypeDetailDatas"</span>: [                  <span class="hljs-meta"># 计算方式数据</span><br>    {<br>        <span class="hljs-string">"paytype"</span>: <span class="hljs-string">"cpa"</span>,                <span class="hljs-meta"># 计算方式</span><br>        <span class="hljs-string">"clkEquipment"</span>: <span class="hljs-number">223173</span>,<br>        <span class="hljs-string">"actEquipment"</span>: <span class="hljs-number">312</span>,<br>        <span class="hljs-string">"newActive"</span>: <span class="hljs-number">136</span>,<br>        <span class="hljs-string">"newEquipment"</span>: <span class="hljs-number">133</span>,<br>        <span class="hljs-string">"newAccount"</span>: <span class="hljs-number">137</span>,<br>        <span class="hljs-string">"newPayUser"</span>: <span class="hljs-number">20</span>,<br>        <span class="hljs-string">"newPay"</span>: <span class="hljs-number">3065</span>,<br>        <span class="hljs-string">"payrate"</span>: <span class="hljs-number">0.15</span>,<br>        <span class="hljs-string">"discount"</span>: <span class="hljs-number">3760</span>,<br>        <span class="hljs-string">"cpa"</span>: <span class="hljs-number">27.45</span>,<br>        <span class="hljs-string">"totalpay"</span>: <span class="hljs-number">59482</span>,<br>        <span class="hljs-string">"roi"</span>: <span class="hljs-number">1107.38</span><br>    },<br>    {<br>        ......<br>    }<br>  ] <br>}<br></code></pre></div></body></html>